POV-Ray : Newsgroups : povray.animations : using an animation as an image map : using an animation as an image map Server Time
28 Jul 2024 20:25:53 EDT (-0400)
  using an animation as an image map  
From: me
Date: 14 Aug 1998 02:04:39
Message: <35d3c567.0@news.povray.org>
I want to actually use an animation as a height field, but the idea is
basically th same:

clock goes from 0 to 1
animation goes from fram 1 to 15
mapped_animation goes from frame 1 to 15


#declare current_frame=15*clock     //should be an integer...
#declare file="D:\images\fram" + current_frame + ".tga"
height field { file    <<height field stuff>> }

but, because current_frame is an integer, it can not be concatenated (added)
with the strings "D:\images\fram"  and  ".tga,"  so, I can not end up with
the string "d:\images\povray\fram15.tga"

The question is.....  (drum roll please)   how do I convert the integer
current_frame to a string so that I can concatenate it?  I have tried the
system, but using current_frame="15"  to see that strings do concatenate the
way I want, and it worked fine.  But, in order to automate it as an
animation, I need 15*clock, and that returns a number, not a string!!!
can anybody help me with this?   Is this stated explicitly in the manual?

Thank you for any help you can give me!!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.